package com.sjtu.service;

import com.sjtu.dao.model.ClientInfo;
import com.sjtu.dao.repository.ClientInfoRepository;
import com.sjtu.web.form.ClientInfoForm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * nerine
 * 1/28/2020
 */
@Service
public class ClientInfoService {
    @Autowired
    private ClientInfoRepository repository;

    public List<ClientInfo> findByPage() {

        return null;
    }

    public void save(ClientInfoForm form) {
//        ClientInfo clientInfo = new ClientInfo();
//        if(StringUtils.isNotBlank(form.getIdClientInfo())) {
//            clientInfo.setIdClientInfo(UUID.fromString(form.getIdClientInfo()));
//        }else {
//            clientInfo.setCreatedBy(form.getUserId());
//        }
//        clientInfo.setSystemId(form.getSystemId());
//        clientInfo.setSystemName(form.getSystemName());
//        clientInfo.setUpdatedBy(form.getUserId());
//        clientInfo.setUpdatedDate(new Date());
//        repository.save(clientInfo);
    }
}
